#include "card.h"
#include <stdio.h>
#include <GL/glut.h>

//Init card to null
Card *Card::card = NULL;

//Constructor
Card::Card():anim(20)
{
	//Start animation from MAX to 0
	anim.startFromEnd();
}

//Drawing
void Card::draw()
{
	//Animation is running
	if (anim.isRunning())
	{
		//Move card based on animation
		float offset = anim.interpolate(150.0f);
		//glTranslatef(-offset, offset, -offset *2.5f);
		glTranslatef(0.0f, 0.0f, -offset);
	}
}
